<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li id="activetab"><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
					 
<#setting number_format = "#"/>
<#import "macros/group_macros.ftl" as lib>

<form accept-charset="${encoding}" name="form" action="${contextPath}/jforum${extension}" method="post">
<input type="hidden" name="action" value="delete" />
<input type="hidden" name="module" value="${moduleName}" />


<table cellspacing="1">
		<caption>${I18n.getMessage("Groups.List.Title")}</caption>
		<colgroup><col class="col1"><col class="col2"><col class="col1"><col class="col2">
	</colgroup><thead>
	<tr>
		<th>${I18n.getMessage("Groups.List.groupName")}</th>
		<th style="text-align: center;">${I18n.getMessage("Action")}</th>
		<th style="text-align: center;">${I18n.getMessage("Delete")}</th>
		<th style="text-align: center;">${I18n.getMessage("Security")}</th>
	</tr>
	
	
	</thead>
	<tbody>
	<#if errorMessage?exists>
	<tr>
		<td colspan="4"><span><center>&nbsp;<font color="#ff0000"><b>${errorMessage}</b></font></center></span></td>
	</tr>
	</#if>

	<#assign len = groups.size() - 1> 
	<#if (len > -1)> 
	    <#list 0..len as i>
	    <#assign node = groups.get(i)> <#global level = 0>

	<tr>
		<td><strong>${node.name}<strong></td>
		<td style="text-align: center;"><a href="${contextPath}/${moduleName}/edit/${node.id}${extension}">${I18n.getMessage("Groups.List.Edit")}</a></td>
		<td style="text-align: center;"><input type="checkbox" name="group_id" value="${node.id}" class="radio"/></td>
		<td style="text-align: center;"><a href="${contextPath}/${moduleName}/permissions/${node.id}${extension}">${I18n.getMessage("Permissions")}</a></td>
	</tr>

	<@lib.listGroups node/> 
	</#list>
	</#if>
	</tbody>
</table>
<fieldset class="submit-buttons">
		<input class="button1" type="button" value="${I18n.getMessage("Groups.List.ClickToNew")}" name="button" onclick="document.location = '${contextPath}/${moduleName}/insert${extension}';">&nbsp;
		<input class="button2" type="submit" value="${I18n.getMessage("Groups.List.ClickToDelete")}">
</fieldset>

</form>
	

	
	
</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>
